#include "common.h"
#include "Whitespace.h"

TokenExtractor Whitespace::extractor = TokenExtractor([](char in){
	return in == '\n' || in == ' ' || in == '\r' || in == '\t';
}, [](char first, ifstream& rest)->Token*{
	while(first == '\n' || first == ' ' || first == '\r' || first == '\t')
	{
		if(first == '\n') return new Whitespace();
		first = rest.get();
	}
	rest.unget();
	return nullptr;
});

string Whitespace::print() const
{
	return "";
}

string Whitespace::printType() const
{
	return "";
}
